﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="ZHDJ.Web.Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="/Resource/themes/default/css/login.css" rel="stylesheet" />
    <script src="Resource/js/utility.js"></script>
    <script type="text/javascript">
        function su() {
            alert("注册成功！");
            window.location.href = "Login.aspx";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="s_content_k">
        <f:PageManager ID="PageManager1" runat="server" />
        <div class="reptab" style="overflow:hidden;">
            <span style="float:left;">
                <a href="login.aspx">用户登录</a>
            </span>
            <span class="tabrecur" style="float:right;">用户注册</span>
        </div>
        <div class="myRegisterTable">
            <div class="cztable" style="margin-top: 30px; padding: 0 300px;">
                <table class="table_b" border="0" style="border:none;" cellspacing="0" cellpadding="0">
                    <tr class="tr_b" style="background:transparent;">
                        <th class="th_b" style="width: 126px">用户名</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtUserNo" Width="200px" runat="server" Required="true" ShowRedStar="true" MaxLength="20" RegexPattern="IDENTITY_CARD" RegexMessage="用户名必须为身份证号！">
                            </f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <th class="th_b" style="width: 126px">密码</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtPassword" TextMode="Password" Width="200px" runat="server" Required="true" ShowRedStar="true" MaxLength="20">
                            </f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b" style="background:transparent;">
                        <th class="th_b" style="width: 126px">确认密码</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtPassword2" TextMode="Password" runat="server" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <th class="th_b" style="width: 126px">姓名</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtUserName" runat="server" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b" style="background:transparent;">
                        <th class="th_b" style="width: 126px">性别</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:RadioButtonList LabelAlign="right" ID="rbGender" Required="true" ShowRedStar="true" runat="server">
                                <f:RadioItem Text="男" Value="0" />
                                <f:RadioItem Text="女" Value="1" />
                            </f:RadioButtonList>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <th class="th_b" style="width: 126px">工作单位</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtWorkUnit" runat="server" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                            <f:TriggerBoxPicker Label="" LabelAlign="right"
                                runat="server" ID="ppBranch" ShowTrigger1="true" ShowTrigger2="true" Trigger1Icon="Clear"
                                EnableEdit="false" WindinsTitle="选择工作单位"
                                WindinsHeight="450px" EnableTrigger1PostBack="false"
                                WindinsWidth="700px" WindinsUrl="app/Share/Picker/BranchToMemberPicker.aspx">
                            </f:TriggerBoxPicker>
                            <f:TextBox ID="txtBranch" runat="server" Width="200px"  MaxLength="200"></f:TextBox>
                            <%--<span style="display:inline-block;width: auto;height: 50px;line-height:50px; color:#e60000;">(外来人员填写)</span>--%>
                        </td>
                    </tr>
                    <tr class="tr_b"  style="background:transparent;">
                        <th class="th_b" style="width: 126px">职务</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtUnitJob" runat="server" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <th class="th_b" style="width: 126px">身份证号</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtIdentityCard" RegexPattern="IDENTITY_CARD" runat="server" Width="200px" Required="true" ShowRedStar="true" MaxLength="200" RegexMessage="请输入正确的身份证号！"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b" style="background:transparent;">
                        <th class="th_b" style="width: 126px">手机号码</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtMobileNo" runat="server" Regex="^(1(([35][0-9])|(47)|[8][01236789]))\d{8}$" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <th class="th_b" style="width: 126px">电子邮箱</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtEmail" runat="server" RegexPattern="EMAIL" Width="200px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                        </td>
                    </tr>
                    <tr class="tr_b" style="background:transparent;">
                        <th class="th_b" style="width: 126px">验证码</th>
                        <td class="td_b" style="width: auto;text-align: left;">
                            <f:TextBox ID="txtValidateNum" runat="server" Width="120px" Required="true" ShowRedStar="true" MaxLength="200"></f:TextBox>
                            <f:Image runat="server" ID="ImaValidateNum" ImageUrl="app/share/ValidateNum.aspx"></f:Image>
                            <f:LinkButton runat="server" ID="lbtnValidateNum" EnablePostBack="true" OnClick="lbtnValidateNum_Click" Text="看不清，刷新验证码"></f:LinkButton>
                        </td>
                    </tr>
                    <tr class="tr_b">
                        <td class="td_b" colspan="4" style="text-align: center;font-size:16px;">
                            <f:Button ID="btnRegister" ValidateForms="Form1" OnClick="btnRegister_Click" runat="server" Text="立即注册" CssStyle="width:200px;padding:0;margin-left:14px;background:#ea0900;font-size:16px;color:#fff;text-align:center;border:none;"></f:Button>
                        </td>
                    </tr>
                </table>
            </div>

        </div>
        <div style="clear: both"></div>
    </div>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Title="选择党支部"
        Hidden="true" Target="Parent" EnableResize="true" EnableMaximize="true" EnableIFrame="true"
        IFrameUrl="about:blank" Width="700px" Height="500px">
    </f:Window>
    <f:HiddenField ID="hdBranchID" runat="server"></f:HiddenField>
</asp:Content>

